package sub;

import parent.Shape;

public class Circle extends Shape {
	protected double radius = 1.0;
	
	public Circle(){
		
	}
	
    public Circle(double radius, String color, boolean filled){
    	this.color = color;
    	this.filled = filled;
    	this.radius = radius;
	}
    
    public double getRadius(){
    	return radius;
    }
    
    public void setRadius(double radius){
    	this.radius = radius;
    }
    
    public double getArea(){
    	return Math.PI * radius * radius;
    }
    
    public double getPerimeter(){
    	return Math.PI * radius * 2;
    }
    
    public String toString(){
    	return "Circle[Shape[ color = " + color + ", filled is " + filled +"], Area = " + getArea() + ", Perimeter = " + getPerimeter() + "]";
    }

}
